{% extends "base.html" %}

{% block greeting %}
    <h4>{{ user|capfirst }}, welcome to the admin page</h4>
{% endblock greeting%}

{% block table %}
  {% for profiler in profilers %}
    {% if forloop.first %}
      <table border="1">
        <caption><em>List of Profilers</em></caption>
        <tr>
          <th>{{ profiler.print_column_names }}</th>
        </tr>
    {% endif %}
    <tr>
      <td>{{ profiler.print_row }}</td>
    </tr>
    {% if forloop.last %}
      </table>
    {% endif %}
  {% endfor %}
  <h5>{{ profilers|length }} profiler{{ profilers|length|pluralize }} in the table</h5>
{% endblock table %}
    
{% block form %}
  <h5>Edit a profiler:</h5>
  <form action="/edit_user" method="get" name="edit_profiler_form" onsubmit="return validate(this);">
    Google Username: <input type="text" value="" name="username"/>
    <input type="submit" name="edit_button" value="Edit">
  </form>
{% endblock form %}